﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Chloe.Annotations;
using Kang.DbDoc.Enums;

namespace Kang.DbDoc.Domains
{
    [Table("kang_db_server")]
    public class DbServer
    {
        [Column("id", IsPrimaryKey = true), AutoIncrement]
        public int Id { get; set; }

        [Column("name")]
        public string Name { get; set; }

        [Column("database_host")]
        public string DatabaseHost { get; set; }

        [Column("database_port")]
        public int? DatabasePort { get; set; }

        [Column("database_name")]
        public string DatabaseName { get; set; }

        [Column("database_username")]
        public string DatabaseUsername { get; set; }

        [Column("database_password")]
        public string DatabasePassword { get; set; }

        [Column("time_out")]
        public int? TimeOut { get; set; }

        [Column("is_ssl_mode")]
        public bool? IsSslMode { get; set; }

        [Column("connection_string")]
        public string ConnectionString { get; set; }

        [Column("db_type")]
        public DatabaseTypeEnum? DbType { get; set; }

        [Column("remark")]
        public string Remark { get; set; }

        [Column("is_delete")]
        public bool? IsDelete { get; set; }

        [Column("update_time")]
        public DateTime? UpdateTime { get; set; }

        [Column("cteate_time")]
        public DateTime? CreateTime { get; set; }
    }
}
